/**
 * 
 */
package playGround.dungeon;

/**
 * @author Niels Claeys, Maarten Christiaen
 * @version 2.2
 */
public enum Direction {
	NORTH, EAST, SOUTH, WEST, CEILING, FLOOR;
	/**
	 * this method returns the complement of the given direction.
	 * @param direction you want the complement from
	 * @return the complement of the direction
	 * 			|if(direction ==Direction.NORTH)
	 * 			| result == Direction.SOUTH
	 * 			|if(direction==Direction.SOUTH)
	 * 			| result == Direction.NORTH
	 * 			| if(direction==Direction.EAST)
	 * 			| result == Direction.WEST
	 * 			| if(direction==Direction.WEST)
	 *			| result== Direction.EAST
	 *			| if(direction==Direction.CEILING)
	 *			| result == Direction.FLOOR;
	 *			| else result == Direction.CEILING;
	 */
	public static Direction getComplement(Direction direction){
		if(direction==Direction.NORTH)
			return Direction.SOUTH;
		if(direction==Direction.SOUTH)
			return Direction.NORTH;
		if(direction==Direction.EAST)
			return Direction.WEST;
		if(direction==Direction.WEST)
			return Direction.EAST;
		if(direction==Direction.CEILING)
			return Direction.FLOOR;
		return Direction.CEILING;
	}
}
